package io;

import java.io.File;
import java.util.Arrays;

public class demo4 {
    public static void main(String[] args) {
        File file = new File("./test.txt");
        System.out.println(Arrays.toString(file.list()));
        System.out.println(Arrays.toString(file.listFiles()));
    }
}
